list2 = [2, 2, 3, 4, 5]
print(list2)

list3 = list(range(5))
print(list3)
list4 = list(range(8))

list4.extend(list3)

print(list4)

list5 = list2.copy()

print(list5)
print("---------------------------------------")

print(list2)
print(list5)

list5[2] = "changpeng"

print("------------------------")

print(list5)
print(list2)

print("---------copy--------")

import copy

list6 = copy.deepcopy(list5)

print(list6)
list6[1] = "haoshuai"

print(list5)
print(list6)

print("--------------浅copy------------")

print(list5)

print("----------上面是初始的list5---------")

list7 = copy.copy(list5)

print(list7)
print("------------------上边的为copy过来的list7----------------")
print("修改list7")
list7[3] = "heihei"

print(list7)
print(list5)


dict1 = {"name": "长鹏", "age": "22", "class": "one"}

dict2 = dict1.copy()

print(dict1)
print(dict2)

dict2["age"] = "33"

print("---------------------------")

print(dict2)
print(dict1)

print("-------------------------")

"""


import  copy



dict3 = {"name": "长鹏", "age": 22, "class": "one", "num": [1,2,3]}

dict4 = copy.deepcopy(dict3)
print("========================")

print(dict4)

dict4["age"] = 33
dict4["num"].remove(1)


print(dict4)
print(dict3)



print("=++========================")

print(dict3)

dict5  = copy.copy(dict3)

print(dict5)

dict5["age"] = 33
dict5["num"].remove(1)

print("-----------------==============")

print(dict5)
print(dict3)



list9 = dict3.keys()

print(list9)
list12 = list(list9)
print(list12)


"""

print("=============")

dict3 = {"name": "长鹏", "age": 22, "class": "one", "num": [1,2,3]}


dict4 = dict3.copy()

print(dict4)
print(dict3)

dict4["num"].remove(1)
print(dict4)
print(dict3)

dict4["age"] = 33

print(dict4)


print(dict3)



import sys

x = "敞篷好帅";  sys.stdout.write(x + '\n')









